//======================================================================================
//  Notes:Use this command to anonymously check out the latest project source code:
//  Non-members may check out a read-only working copy anonymously over HTTP.
//  http://YHQCodingWsp.googlecode.com/svn/trunk/
//
//  Author:		Kevin Yang
//  Email:		Bigearrabbit@qq.com
//
//  DATE:		2013-4-22
//
//  File Name:	YHQFile.h
//
//  Notes:
//
//======================================================================================
#ifndef YHQFile_H
#define YHQFile_H

//local library
#include "YHQCodingCore_Global.h"
#include "YHHPropertyDefine.h"

//QT include
#include <QString>


/// <summary>YHQ File</summary>
/// <author>Kevin Yang</author>
/// <date>2013-4-22</date>
class YHQCodingCore_SHARED_EXPORT YHQFile
{
     
public:
    explicit YHQFile();
    ~YHQFile();
    
public:

    /// <summary>Remove Folder Contents</summary>
    /// <param name="iFolderDir">Folder Dir</param>
    /// <remarks></remarks>
    /// <author>Kevin Yang</author>
    /// <date>2013-4-22</date>
    static bool DeleteFolderContents(const QString & iFolderDir);

    /// <summary>Delete Folder and all contents</summary>
    /// <param name="iFolderDir">Folder Dir</param>
    /// <remarks></remarks>
    /// <author>Kevin Yang</author>
    /// <date>2013-4-22</date>
    static bool DeleteFolder(const QString & iFolderDir);

    static bool WriteToTextFile(const QString &iPath, const QStringList & iList);
};

#endif // YHQFile_H
